package com.tduck.cloud.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tduck.cloud.account.entity.UserTokenEntity;
import org.apache.ibatis.annotations.Insert;

/**
 * 用户tokenMapper接口
 *
 * @author tduck
 * @date 2023-04-04 16:11:29
 */
public interface UserTokenMapper extends BaseMapper<UserTokenEntity> {

    @Insert("insert into ac_user_token(token,user_id,expire_time) values(#{token, jdbcType=VARCHAR},#{userId, jdbcType=VARCHAR},#{expireTime, jdbcType=TIMESTAMP})")
    void saveToken(UserTokenEntity userTokenEntity);
}
